home *** CD-ROM | disk | FTP | other *** search
/ HyperLib 1997 Winter - Disc 1 / HYPERLIB-1997-Winter-CD1.ISO.7z / HYPERLIB-1997-Winter-CD1.ISO / オンラインウェア / BUS / DynRisk 68k 4.01 demo.sit / DynRisk-Help.rsrc / TEXT_6524.txt < prev    next >
Text File  |  1996-08-30  |  1KB  |  25 lines

  1. Thresh3
  2.  
  3. A simple threshold function where the threshold is a linear function defined by the 窶彡窶, 窶彭窶 and 窶彳窶 parameters. Instead of a single constant threshold, the threshold has the form:
  4.  
  5.     Threshold = c d + e
  6.  
  7. If you specify numbers for all the parameters, you probably do not need this linear function. In such cases you can just replace the more complex threshold by a simple constant threshold, and use the Thresh1 function instead.
  8.  
  9. However, if some of the parameters are references to nodes, the Thresh3 function provides a little bit more flexibility.
  10.  
  11. If the input value is greater than or equal to the threshold, the output value is equal to the 窶彗窶 parameter. Otherwise, the output value is equal to the 窶彙窶 parameter. 
  12.  
  13. Like the Thresh1 function, this function is also useful for converting a variable to e.g., an indicator. By letting 窶彗窶 be 1 and 窶彙窶 be 0, the output value is the indicator for the event that the input value is greater than or equal to the threshold.
  14.  
  15. Note that the 窶彗窶 parameter does not need to be greater than the 窶彙窶 parameter. It is perfectly OK to e.g., let 窶彗窶 be 0 and 窶彙窶 be 1.
  16.  
  17. Default parameter values:
  18.     a = 1, b = 0, c = 0, d = 0, e = 1
  19.  
  20. Example:
  21.     a = 10, b = 1, c = 2, d = 3, e = 1
  22.  
  23.     Input = 5  =>  Output = 1
  24.     Input = 9  =>  Output = 10
  25.